<html>
<body>
<?
	if (session.get("counter") == null) {
		session.set("counter", 2);
		out.println("<h1>Hi "+params.get("name")+" this is your first visit</h1>");
	} else {
		out.println("<h1>This is your "+session.get("counter")+" visit</h1>");
		session.set("counter", 1+((int)session.get("counter")));
	}
?>
</body>
</html>